﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Logica;
using System.Collections;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            interprete_scanner nvoScanner = null;
            interprete_parser nvoParser = null;

            try
            {
                using (TextReader reader = File.OpenText("C://Proyecto2//Salida.cpp"))
                {
                    nvoScanner = new interprete_scanner(reader);
                    nvoParser = new interprete_parser(nvoScanner);

                    nvoParser.parse();

                    Nodo n = interprete_parser.raiz;

                    Console.WriteLine("Se ejecuto con exito");

                    Console.ReadLine();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Hubo un error");
                Console.ReadLine();
            }
        }
    }
}
